class DeviceInfo {
  DeviceInfo({
    this.id,
    this.brand,
    this.model,
    this.productName,
    this.systemName,
    this.systemVersion,
  });

  final String? id; // Android: androidId; iOS: identifierForVendor.
  final String? brand; // Android: brand; iOS: Hard-coded as "Apple".
  final String? model; // Android: model; iOS: model.
  final String? productName; // Android: product; iOS: name.
  final String? systemName; // Android: Hard-coded as "Android"; iOS: systemName.
  final String? systemVersion; // Android: version.release; iOS: systemVersion.

  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'brand': brand,
      'model': model,
      'productName': productName,
      'systemName': systemName,
      'systemVersion': systemVersion,
    };
  }
}
